package com.csu.device.entity;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;
import java.util.List;

/**
 * 数据分析类加载到redis
 */
public class Device implements Serializable {

    private Integer id;//id
    private String deviceSn;//设备编号
    private String deviceName;//设备名称
    private Integer deviceType;//设备类型
    private String deviceState;//设备状态
    private Integer behaviorType;//分析类型
    private Integer oneKey;//是否一键呼救
    private String site;//位置
    private String stieLeft;//上下位置
    public List<DeviceRela> deviceRelas;//设备绑定关系
    public JSONArray jsonArray;
    private DevSwitch devSwitch;
    private JSONObject jsonObject;
    private Behavior behavior;

    public Behavior getBehavior() {
        return behavior;
    }

    public void setBehavior(Behavior behavior) {
        this.behavior = behavior;
    }

    public JSONObject getJsonObject() {
        return jsonObject;
    }

    public void setJsonObject(JSONObject jsonObject) {
        this.jsonObject = jsonObject;
    }

    public DevSwitch getDevSwitch() {
        return devSwitch;
    }
    public void setDevSwitch(DevSwitch devSwitch) {
        this.devSwitch = devSwitch;
    }

    public JSONArray getJsonArray() {
        return jsonArray;
    }

    public void setJsonArray(JSONArray jsonArray) {
        this.jsonArray = jsonArray;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceState() {
        return deviceState;
    }

    public void setDeviceState(String deviceState) {
        this.deviceState = deviceState;
    }

    public Integer getBehaviorType() {
        return behaviorType;
    }

    public void setBehaviorType(Integer behaviorType) {
        this.behaviorType = behaviorType;
    }

    public Integer getOneKey() {
        return oneKey;
    }

    public void setOneKey(Integer oneKey) {
        this.oneKey = oneKey;
    }

    public List<DeviceRela> getDeviceRelas() {
        return deviceRelas;
    }

    public void setDeviceRelas(List<DeviceRela> deviceRelas) {
        this.deviceRelas = deviceRelas;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getStieLeft() {
        return stieLeft;
    }

    public void setStieLeft(String stieLeft) {
        this.stieLeft = stieLeft;
    }
}
